<template>
  <div class="no-result">
    <div class="no-result">
      <div class="no-result-icon"></div>
      <p class="no-result-text">{{title}}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="stylus" scoped rel="stylesheet/stylus">
  @import '~common/stylus/variable';
  @import '~common/stylus/mixin';

  .no-result {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    .no-result-icon {
      width: 30%;
      height: 0;
      padding-top: 30%;
      bg-image('no-result');
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: 50% 50%;
      margin-bottom: 20px;
    }

    .no-result-text {
      color: $color-theme;
      font-weight: bold;
    }
  }
</style>
